package Model;

public class Decorator extends Component{
    private Component myComp;

    public Decorator(Component myComp) {
        this.myComp = myComp;
    }

    @Override
    public void showCloth2() {
        if(myComp != null){
            myComp.showCloth2();
        }
        else{
            System.out.println("Component is empty");
        }
    }
}
